package com.ziyue.socket.service.impl;

import com.ziyue.socket.enums.OptionEnum;
import com.ziyue.socket.service.OptionAbstract;
import io.netty.channel.Channel;

/**
 * Created by wancheng on 2019/4/18.
 */
public class Destroy extends OptionAbstract {

    private final OptionEnum OPTION = OptionEnum.DESTROY;

    @Override
    public Object send(Channel channel, String requestBody) {
        Integer roomId = roomManage.getMember(channel.id()).getRoomId();
        roomManage.destroy(roomId);
        return null;
    }

    @Override
    public Object get(Channel channel, String requestBody) {
        return null;
    }
}
